﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Pages_Social_VideoUpload : System.Web.UI.Page
{
	public string Token
	{
		get
		{
			return Request["token"];
		}
	}

	protected void Page_Load(object sender, EventArgs e)
	{
		this.EnableViewState = false;
		LoadData();
	}

	private void LoadData()
	{		
		//var url = Request.QueryString["url"];
		//if (string.IsNullOrEmpty(url))
		//{
		//    ScriptManager.RegisterStartupScript(this, typeof(Page), "no", "alert('Invalid parameters');", true);
		//    return;
		//}
		//Form.Action = url;

		Form.Method = "post";
		Form.Enctype = "multipart/form-data";
		Form.Attributes.Add("onsubmit", "return checkForFile();");
	}
}